package cn.com.shopec.erp.filter;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.dao.DataAccessResourceFailureException;
import org.springframework.orm.hibernate3.support.OpenSessionInViewFilter;

public class OpenSessionFilter extends OpenSessionInViewFilter {  
	  
    @Override  
    protected Session getSession(SessionFactory sessionFactory) throws DataAccessResourceFailureException {  
        return super.getSession(sessionFactory);  
    }  
  
    @Override  
    protected void closeSession(Session session, SessionFactory sessionFactory) {  
        super.closeSession(session, sessionFactory);  
    }  
  
}
